package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 已读消息表
 * </p>
 *
 * @author
 * @since 2019-07-30
 */
@TableName("c_read_message")
@Data
public class ReadMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 消息通知id
     */
    @TableField("message_notice_id")
    private String messageNoticeId;

    /**
     * 消息类型： 0-公告，1-系统消息，2-平台通知
     */
    @TableField("type")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    @Override
    public String toString() {
        return "ReadMessage{" +
        "id=" + id +
        ", messageNoticeId=" + messageNoticeId +
        ", type=" + type +
        ", createTime=" + createTime +
        ", userId=" + userId +
        "}";
    }
}
